﻿using System;
using System.Configuration;
using System.Linq;
using Controllers;

namespace Web
{
    public partial class EmpEduList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string empId = Request.QueryString["empId"];
            ApolloOaDataContext ctx = new ApolloOaDataContext(ConfigurationManager.ConnectionStrings["SqlConnectionString"].ConnectionString);
            var v = from r in ctx.EmpEducations where r.EmpId == int.Parse(empId) orderby r.StartDate descending select r;
            rptList.DataSource = v;
            rptList.DataBind();
        }
    }
}